import request from '@/utils/request'

// 查询威胁事件列表
export function listThreat_incident(query) {
  return request({
    url: '/insurance/threat_incident/list',
    method: 'get',
    params: query
  })
}

// 查询威胁事件详细
export function getThreat_incident(threatId) {
  return request({
    url: '/insurance/threat_incident/' + threatId,
    method: 'get'
  })
}

// 新增威胁事件
export function addThreat_incident(data) {
  return request({
    url: '/insurance/threat_incident',
    method: 'post',
    data: data
  })
}

// 修改威胁事件
export function updateThreat_incident(data) {
  return request({
    url: '/insurance/threat_incident',
    method: 'put',
    data: data
  })
}

// 删除威胁事件
export function delThreat_incident(threatId) {
  return request({
    url: '/insurance/threat_incident/' + threatId,
    method: 'delete'
  })
}
